package com.xuerhua.yxt.view;

import com.xuerhua.yxt.model.StudentInfo;
import com.xuerhua.yxt.utils.DateUtil;

public class StudentInfoView extends StudentInfo {

	private static final long serialVersionUID = 1789538413395347461L;
	
	public Integer parentCount;
	
	public Integer messageCount;
	
	public String getGradeName(){
		return TermView.getGradeName(super.getGrade());
	}
	
	public String getClassName() {
		return super.getClazz() + "班";
	}

	public Integer getParentCount() {
		return parentCount;
	}

	public void setParentCount(Integer parentCount) {
		this.parentCount = parentCount;
	}
	
	public String getBirthdayDate() {
		if(super.getBirthday() != null) {
			return DateUtil.dateToStr(super.getBirthday(), DateUtil.DATE_FORMAT1);
		}
		return null;
	}
}
